from post import views
from django.urls import path,include
from rest_framework.routers import DefaultRouter
from .views import   PermissionViewSet
router = DefaultRouter()
router.register(r'permissions', PermissionViewSet)

urlpatterns = [
    path('topicall/', views.TopicList.as_view()),
    path('topic/',views.Topic.as_view()),
    path('topicdetail/',views.TopicDetail.as_view()),
    path('topicuser/',views.TopicFollow.as_view()),
    path('topicuserfollow/',views.UserTopicFollow.as_view()),
    path('addusertopic/',views.AddTopicFollowView.as_view()),
    path('upload/',views.UploadImageView.as_view()),
    path('posts/', views.PostView.as_view()),
]
urlpatterns += router.urls